package com.guangzi.service.impl;

import com.guangzi.entity.Home;
import com.guangzi.mapper.HomeDao;
import com.guangzi.service.AbstractService;
import com.guangzi.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HomeServiceImpl extends AbstractService implements HomeService {
    private HomeDao homeDAO;

    @Autowired
    public void setHomeDAO(HomeDao homeDAO) {
        super.setBaseDAO(homeDAO);
        this.homeDAO = homeDAO;
    }

    @Override
    public void updateStatus(Home home) {
        homeDAO.updateStatus(home);
    }
}
